package cn.tedu.micro.service.order.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;

//自定义限流类
public class OrderBlockError {
    //自定义方法
    //需要额外添加static修饰符，否则该方法无发被sentinel发现
    public static String blockError(BlockException e){
        return "您被限流了~~~~~~~~~~~~~~~~~~~~~~";
    }
}
